
<h1 class="ml-10">Profil {$user}</h1>

<div class="clear">
    <img class="ml-40" src="{if $userData.0.avatar neq ''}{$url}public/avatars/{$userData.0.avatar}{else}{$url}public/avatars/nouser.png{/if}" alt="zdjęcie użytkownika"/>
    <span></span>
</div> 

<ul class="profileMenu">
    <!--<li onclick="javascript: showMenuTab('1')" id="tab_1" style="background: url('http://shows.pl/public/images/activMenuBack.png') repeat-x">Aktualności</li>
    <li onclick="javascript: showMenuTab('2')" id="tab_2">Powiadomienie</li>-->
    <li onclick="javascript: showMenuTab('3')" id="tab_3">Ostatnio oglądane</li>
    <li onclick="javascript: showMenuTab('4')" id="tab_4">Ulubione</li>
    <li onclick="javascript: showMenuTab('5')" id="tab_5" style="background-color: #220520;">Edycja profilu</li>
</ul>

<!--<div class="clear of-both profileMenuContent ml-40 mr-40 pb-20 pl-10 pt-5" id="menuTab_1" style="display: block;">
    <ul class="simpleMenu mb-30">
        <li>Wszystkie</li>
        {foreach from=$favouritesSerials item=value}
        <li>{$value.name}</li>
        {/foreach}
    </ul>
    <div class="of-both">

    </div>
</div>
<div class="clear of-both profileMenuContent ml-40 mr-40 mr-40 pt-20 pb-20 pl-10" id="menuTab_2" style="display: none;">
    <span>Powiadomienia</span>
</div>-->
<div class="clear of-both profileMenuContent ml-40 mr-40 mr-40 pt-20 pb-20 pl-10" id="menuTab_3" style="display: none;">
    <ul id="last_watch">
        {foreach from=$lastWatch item=value}
            <li>
                <img class="f-left mr-10" width="183" src="{$url}public/serials_avatars/small/{$value.serial_id}.jpg"/>
                <a style="color:#9999CC; font-size: 12px;" href="{$url}serial/{$value.freeName}"><b>{$value.polish_name}</b>{if $value.name neq $value.polish_name} ({$value.name}){/if}</a><br/><br/>
                <a href="{$url}serial/{$value.freeName}/s{$value.season}e{$value.episode}">{$value.name} seria {$value.season} odcinek {$value.episode}</a><br/><br/>
                <!--<span>Twoja ocena: </span><br/>-->
                <span>Ogólna ocena: {$value.note}</span>
            </li>
        {/foreach}
    </ul>
</div>
<div class="clear of-both profileMenuContent ml-40 mr-40 mr-40 pt-20 pb-20 pl-10" id="menuTab_4" style="display: none;">
        <ul class="fav_serials">
            {foreach from="$favouritesSerials" item=value}
            <li>
                <div class="f-left" style="width: 400px;">
                    <a href="{$url}serial/{$value.linkName}"><img width="183" class="f-left mr-10" src="{$url}public/serials_avatars/small/{$value.id}.jpg"/></a>
                    <a href="{$url}serial/{$value.linkName}" class="mb-5 fs-13"><b>{$value.name}</b>{if $value.name neq $value.polish_name} ({$value.polish_name}){/if}</a><br/><br/>
                    <!--<span class="mt-10">Twoja ocena: </span><br/>-->
                    <span class="mt-5">Średnia ocena: <b>{$value.note}</b></span>
                </div>
                <div class="f-right">
                    <span class="f-right"><a href="{$url}profil/usun-z-ulubionych/{$value.id}">usuń</a></span>
                </div>
            </li>
            {/foreach}
        </ul>
        <!--<div class="favSerials">
            <span class="f-left">{$value.name}</span><span class="f-right"><a href="{$url}profil/usun-z-ulubionych/{$value.id}">usuń</a></span>
        </div>
        <div class="clear"></div>-->
</div>
<div class="clear of-both profileMenuContent ml-40 mr-40 mr-40 pt-20 pb-20 pl-10" id="menuTab_5" style="display: block;">
    <form method="post" action="{$url}edytuj_profil" enctype="multipart/form-data">

        <ul class="edit_profile">
            <li><span class="f-left fw-b">Zmaina hasła</span></li>
            <li><span class="f-left">Stare hasło</span><input class="f-right inputFile" type="password" name="oldPass"/></li>
            <li><span class="f-left">Nowe hasło</span><input class="f-right inputFile" type="password" name="newPass"/></li>
            <li><span class="f-left">Powtórz nowe hasło</span><input class="f-right inputFile" type="password" name="newPassConfirm"/></li>
            <li><span class="f-left fw-b">Zmaina avatara</span></li>
            <li><span class="f-left">Avatar</span><input class="f-right inputFile" type="file" name="avatar"/></li>
            <li style="padding-top: 5px; border: 0px; padding-top: 20px; height:28px;"><input class="btnLay f-right" type="submit" value="zapisz"></li>
        </ul>
    </form>
</div>
<!--<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/pl_PL"></script><script type="text/javascript">FB.init("f2827ba7716588bcf22210b448b083a0");</script><fb:fan profile_id="118800944823108" stream="0" connections="24" width="680"></fb:fan><div style="font-size:8px; margin-left:10px"></div>-->
